﻿namespace SuperGo.SilverlightLib {
	public class BitMatrix {
		private readonly bool[,] _bitMatrix;

		public BitMatrix(int size) {
			_bitMatrix = new bool[size, size];
			Initialize();
		}

		public void Initialize() {
			int size = _bitMatrix.GetLength(0);
			for (int y = 0; y < size; y++) {
				for (int x = 0; x < size; x++) {
					_bitMatrix[x, y] = false;
				}
			}
		}

		public int Size {
			get { return _bitMatrix.GetLength(0); }
		}

		public bool this[int x, int y] {
			get { return _bitMatrix[x, y]; }
			set { _bitMatrix[x, y] = value; }
		}
	}
}
